package com.yidu.boss.sys.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BondExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public BondExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andBondidIsNull() {
            addCriterion("bondId is null");
            return (Criteria) this;
        }

        public Criteria andBondidIsNotNull() {
            addCriterion("bondId is not null");
            return (Criteria) this;
        }

        public Criteria andBondidEqualTo(String value) {
            addCriterion("bondId =", value, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidNotEqualTo(String value) {
            addCriterion("bondId <>", value, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidGreaterThan(String value) {
            addCriterion("bondId >", value, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidGreaterThanOrEqualTo(String value) {
            addCriterion("bondId >=", value, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidLessThan(String value) {
            addCriterion("bondId <", value, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidLessThanOrEqualTo(String value) {
            addCriterion("bondId <=", value, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidLike(String value) {
            addCriterion("bondId like", value, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidNotLike(String value) {
            addCriterion("bondId not like", value, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidIn(List<String> values) {
            addCriterion("bondId in", values, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidNotIn(List<String> values) {
            addCriterion("bondId not in", values, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidBetween(String value1, String value2) {
            addCriterion("bondId between", value1, value2, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondidNotBetween(String value1, String value2) {
            addCriterion("bondId not between", value1, value2, "bondid");
            return (Criteria) this;
        }

        public Criteria andBondnoIsNull() {
            addCriterion("bondNo is null");
            return (Criteria) this;
        }

        public Criteria andBondnoIsNotNull() {
            addCriterion("bondNo is not null");
            return (Criteria) this;
        }

        public Criteria andBondnoEqualTo(String value) {
            addCriterion("bondNo =", value, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoNotEqualTo(String value) {
            addCriterion("bondNo <>", value, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoGreaterThan(String value) {
            addCriterion("bondNo >", value, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoGreaterThanOrEqualTo(String value) {
            addCriterion("bondNo >=", value, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoLessThan(String value) {
            addCriterion("bondNo <", value, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoLessThanOrEqualTo(String value) {
            addCriterion("bondNo <=", value, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoLike(String value) {
            addCriterion("bondNo like", value, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoNotLike(String value) {
            addCriterion("bondNo not like", value, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoIn(List<String> values) {
            addCriterion("bondNo in", values, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoNotIn(List<String> values) {
            addCriterion("bondNo not in", values, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoBetween(String value1, String value2) {
            addCriterion("bondNo between", value1, value2, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnoNotBetween(String value1, String value2) {
            addCriterion("bondNo not between", value1, value2, "bondno");
            return (Criteria) this;
        }

        public Criteria andBondnameIsNull() {
            addCriterion("bondName is null");
            return (Criteria) this;
        }

        public Criteria andBondnameIsNotNull() {
            addCriterion("bondName is not null");
            return (Criteria) this;
        }

        public Criteria andBondnameEqualTo(String value) {
            addCriterion("bondName =", value, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameNotEqualTo(String value) {
            addCriterion("bondName <>", value, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameGreaterThan(String value) {
            addCriterion("bondName >", value, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameGreaterThanOrEqualTo(String value) {
            addCriterion("bondName >=", value, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameLessThan(String value) {
            addCriterion("bondName <", value, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameLessThanOrEqualTo(String value) {
            addCriterion("bondName <=", value, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameLike(String value) {
            addCriterion("bondName like", value, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameNotLike(String value) {
            addCriterion("bondName not like", value, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameIn(List<String> values) {
            addCriterion("bondName in", values, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameNotIn(List<String> values) {
            addCriterion("bondName not in", values, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameBetween(String value1, String value2) {
            addCriterion("bondName between", value1, value2, "bondname");
            return (Criteria) this;
        }

        public Criteria andBondnameNotBetween(String value1, String value2) {
            addCriterion("bondName not between", value1, value2, "bondname");
            return (Criteria) this;
        }

        public Criteria andCouponrateIsNull() {
            addCriterion("couponRate is null");
            return (Criteria) this;
        }

        public Criteria andCouponrateIsNotNull() {
            addCriterion("couponRate is not null");
            return (Criteria) this;
        }

        public Criteria andCouponrateEqualTo(BigDecimal value) {
            addCriterion("couponRate =", value, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateNotEqualTo(BigDecimal value) {
            addCriterion("couponRate <>", value, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateGreaterThan(BigDecimal value) {
            addCriterion("couponRate >", value, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("couponRate >=", value, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateLessThan(BigDecimal value) {
            addCriterion("couponRate <", value, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("couponRate <=", value, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateIn(List<BigDecimal> values) {
            addCriterion("couponRate in", values, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateNotIn(List<BigDecimal> values) {
            addCriterion("couponRate not in", values, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("couponRate between", value1, value2, "couponrate");
            return (Criteria) this;
        }

        public Criteria andCouponrateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("couponRate not between", value1, value2, "couponrate");
            return (Criteria) this;
        }

        public Criteria andBondstartIsNull() {
            addCriterion("bondStart is null");
            return (Criteria) this;
        }

        public Criteria andBondstartIsNotNull() {
            addCriterion("bondStart is not null");
            return (Criteria) this;
        }

        public Criteria andBondstartEqualTo(Date value) {
            addCriterionForJDBCDate("bondStart =", value, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartNotEqualTo(Date value) {
            addCriterionForJDBCDate("bondStart <>", value, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartGreaterThan(Date value) {
            addCriterionForJDBCDate("bondStart >", value, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("bondStart >=", value, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartLessThan(Date value) {
            addCriterionForJDBCDate("bondStart <", value, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("bondStart <=", value, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartIn(List<Date> values) {
            addCriterionForJDBCDate("bondStart in", values, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartNotIn(List<Date> values) {
            addCriterionForJDBCDate("bondStart not in", values, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("bondStart between", value1, value2, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondstartNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("bondStart not between", value1, value2, "bondstart");
            return (Criteria) this;
        }

        public Criteria andBondendIsNull() {
            addCriterion("bondEnd is null");
            return (Criteria) this;
        }

        public Criteria andBondendIsNotNull() {
            addCriterion("bondEnd is not null");
            return (Criteria) this;
        }

        public Criteria andBondendEqualTo(Date value) {
            addCriterionForJDBCDate("bondEnd =", value, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendNotEqualTo(Date value) {
            addCriterionForJDBCDate("bondEnd <>", value, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendGreaterThan(Date value) {
            addCriterionForJDBCDate("bondEnd >", value, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("bondEnd >=", value, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendLessThan(Date value) {
            addCriterionForJDBCDate("bondEnd <", value, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("bondEnd <=", value, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendIn(List<Date> values) {
            addCriterionForJDBCDate("bondEnd in", values, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendNotIn(List<Date> values) {
            addCriterionForJDBCDate("bondEnd not in", values, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("bondEnd between", value1, value2, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondendNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("bondEnd not between", value1, value2, "bondend");
            return (Criteria) this;
        }

        public Criteria andBondtypeIsNull() {
            addCriterion("bondType is null");
            return (Criteria) this;
        }

        public Criteria andBondtypeIsNotNull() {
            addCriterion("bondType is not null");
            return (Criteria) this;
        }

        public Criteria andBondtypeEqualTo(String value) {
            addCriterion("bondType =", value, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeNotEqualTo(String value) {
            addCriterion("bondType <>", value, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeGreaterThan(String value) {
            addCriterion("bondType >", value, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeGreaterThanOrEqualTo(String value) {
            addCriterion("bondType >=", value, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeLessThan(String value) {
            addCriterion("bondType <", value, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeLessThanOrEqualTo(String value) {
            addCriterion("bondType <=", value, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeLike(String value) {
            addCriterion("bondType like", value, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeNotLike(String value) {
            addCriterion("bondType not like", value, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeIn(List<String> values) {
            addCriterion("bondType in", values, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeNotIn(List<String> values) {
            addCriterion("bondType not in", values, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeBetween(String value1, String value2) {
            addCriterion("bondType between", value1, value2, "bondtype");
            return (Criteria) this;
        }

        public Criteria andBondtypeNotBetween(String value1, String value2) {
            addCriterion("bondType not between", value1, value2, "bondtype");
            return (Criteria) this;
        }

        public Criteria andSumIsNull() {
            addCriterion("sum is null");
            return (Criteria) this;
        }

        public Criteria andSumIsNotNull() {
            addCriterion("sum is not null");
            return (Criteria) this;
        }

        public Criteria andSumEqualTo(BigDecimal value) {
            addCriterion("sum =", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotEqualTo(BigDecimal value) {
            addCriterion("sum <>", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumGreaterThan(BigDecimal value) {
            addCriterion("sum >", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("sum >=", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumLessThan(BigDecimal value) {
            addCriterion("sum <", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumLessThanOrEqualTo(BigDecimal value) {
            addCriterion("sum <=", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumIn(List<BigDecimal> values) {
            addCriterion("sum in", values, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotIn(List<BigDecimal> values) {
            addCriterion("sum not in", values, "sum");
            return (Criteria) this;
        }

        public Criteria andSumBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("sum between", value1, value2, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("sum not between", value1, value2, "sum");
            return (Criteria) this;
        }

        public Criteria andBondinterestIsNull() {
            addCriterion("bondInterest is null");
            return (Criteria) this;
        }

        public Criteria andBondinterestIsNotNull() {
            addCriterion("bondInterest is not null");
            return (Criteria) this;
        }

        public Criteria andBondinterestEqualTo(BigDecimal value) {
            addCriterion("bondInterest =", value, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestNotEqualTo(BigDecimal value) {
            addCriterion("bondInterest <>", value, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestGreaterThan(BigDecimal value) {
            addCriterion("bondInterest >", value, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("bondInterest >=", value, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestLessThan(BigDecimal value) {
            addCriterion("bondInterest <", value, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestLessThanOrEqualTo(BigDecimal value) {
            addCriterion("bondInterest <=", value, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestIn(List<BigDecimal> values) {
            addCriterion("bondInterest in", values, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestNotIn(List<BigDecimal> values) {
            addCriterion("bondInterest not in", values, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bondInterest between", value1, value2, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andBondinterestNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bondInterest not between", value1, value2, "bondinterest");
            return (Criteria) this;
        }

        public Criteria andPaynumIsNull() {
            addCriterion("payNum is null");
            return (Criteria) this;
        }

        public Criteria andPaynumIsNotNull() {
            addCriterion("payNum is not null");
            return (Criteria) this;
        }

        public Criteria andPaynumEqualTo(Integer value) {
            addCriterion("payNum =", value, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumNotEqualTo(Integer value) {
            addCriterion("payNum <>", value, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumGreaterThan(Integer value) {
            addCriterion("payNum >", value, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumGreaterThanOrEqualTo(Integer value) {
            addCriterion("payNum >=", value, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumLessThan(Integer value) {
            addCriterion("payNum <", value, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumLessThanOrEqualTo(Integer value) {
            addCriterion("payNum <=", value, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumIn(List<Integer> values) {
            addCriterion("payNum in", values, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumNotIn(List<Integer> values) {
            addCriterion("payNum not in", values, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumBetween(Integer value1, Integer value2) {
            addCriterion("payNum between", value1, value2, "paynum");
            return (Criteria) this;
        }

        public Criteria andPaynumNotBetween(Integer value1, Integer value2) {
            addCriterion("payNum not between", value1, value2, "paynum");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}